package com.testlio.assignment.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;

/**
 * Request DTO for updating an existing issue.
 * Contains only the fields that can be updated.
 * The updated_at timestamp is handled automatically by the service layer.
 */
@Data
public class UpdateIssueRequest {
    /**
     * The new title of the issue.
     * Must not be blank (null, empty, or whitespace only).
     */
    @NotBlank(message = "Title is required")
    private String title;

    /**
     * The new description of the issue.
     * Must not be blank (null, empty, or whitespace only).
     */
    @NotBlank(message = "Description is required")
    private String description;

    /**
     * The user who updated the issue.
     * Must not be blank (null, empty, or whitespace only).
     */
    @NotBlank(message = "Updated by is required")
    private String updatedBy;
}